package org.hawk.gwtppc.webtest.tests.constructorsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.ClassMock;
import org.hawk.gwtppc.webtest.tests.mock.EnumMock;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock2;

public class GetNameTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock2.class.getDeclaredConstructors()[0].getName(), SubClassMock2.class.getName());
		Asserts.assertEquals(ClassMock.class.getConstructors()[0].getName(), ClassMock.class.getName());
		Asserts.assertEquals(EnumMock.class.getDeclaredConstructor(String.class,int.class).getName(), EnumMock.class.getName());
	}

	public String getName() {
		return "getName()";
	}

}
